#pragma once
#include <QWidget>
#include <QLabel>
#include <QPixmap>
#include <QPainter>
#include "MyLabel.h"
#include "head.h"
#include "SignalTransfer.h"

using namespace V_PDT;

namespace Ui {
    class MyImageWindow;
}

class MyImageWindow : public QWidget
{
    Q_OBJECT

public:
    MyImageWindow(const QPixmap& pixmap, QWidget* parent = nullptr);
    ~MyImageWindow();

    void setROIImg(const QPixmap& pixmap);

signals:
    void sendROIImgInfo(const QHash<QColor, QRect>& ROIinfo);
    void sendROIImgInfoToGuide(const QHash<QColor, QRect>& ROIinfo);
    void sendROIImgInfoToCameraView(const QRect& ROIinfo, const QColor& color);

private:
    Ui::MyImageWindow*  ui;
    QPixmap             m_img;
};
